package com.learn.controller;

import com.learn.Dao.UserDao;
import com.learn.bean.User;
import com.learn.service.UserService;
import com.learn.service.impl.UserServiceImpl;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2024/11/26
 * @description User控制层
 */
public class UserController {
    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void deleteUser(Integer id) {
        userService.deleteUser(id);
    }
    public void updateUser(User user) {
        userService.updateUser(user);
    }
}
